#pragma once

#include <mytypes.h>
#include <attackworker.hxx>
#include <sstream>
#include <string>

using namespace std;

typedef void CURL;

class HvyAttackWorker : public AttackWorker
{
    public:
        HvyAttackWorker(int port, const string& cjh, const string& clxh, FileLog* filelog);

    protected:

        virtual void Execute(Thread::Arg);
	    
		int Register(CURL* curl, stringstream& body, string& slqr, bool& isattacking);
        int Slrq(CURL* curl, const stringstream& body, const string& slrq, bool& isattacking);

		int MultiPerform(void);
        
    private:
        const string _cjh;
        const string _clxh;
        bool _registered;
};

